package api

import (
	"api-getway/handler/req"
	"github.com/gin-gonic/gin"
	"net/http"
)

type ResPonce struct {
	Code int         `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

func VideoAdd(c *gin.Context) {
	var so req.VideoRequest
	err := c.ShouldBind(&so)
	if err != nil {
		c.JSON(http.StatusBadRequest, &ResPonce{
			Code: 400,
			Msg:  "参数错误",
			Data: err.Error(),
		})
		return
	}

}
